package com.xmim.core.entity;

import lombok.Builder;

@Builder
public class Notification<T> {

    /* 消息类型  */
    protected int type;
    /**
     * 值
     */
    protected T data;

    public Notification(int type, T data) {
        this.type = type;
        this.data = data;
    }

    public int getType() {
        return type;
    }

    public T getData() {
        return data;
    }
}
